package com.example.springbootsfzy.mapper;

import com.example.springbootsfzy.domain.Announcements;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author 30658
* @description 针对表【announcements】的数据库操作Mapper
* @createDate 2025-01-02 15:11:37
* @Entity com.example.springbootsfzy.domain.Announcements
*/
public interface AnnouncementsMapper {

    int deleteByPrimaryKey(Long id);

    int insert(Announcements record);

    int insertSelective(Announcements record);

    Announcements selectByPrimaryKey(Long id);
    List<Announcements> selectAll();


    List<Announcements> selectByConsultantId(
            @Param("consultantId") int consultantId,
            @Param("offset") int offset,
            @Param("limit") int limit);


    int updateByPrimaryKeySelective(Announcements record);

    int updateByPrimaryKey(Announcements record);

}
